package com.iot.openfeign;

import com.dc3.common.bean.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import reactivefeign.spring.config.ReactiveFeignClient;
import reactor.core.publisher.Mono;

import java.util.Set;

/**
 * @Author 咕唧
 * @Date 2022/7/22 10:16
 * @Version 1.0
 */
@ReactiveFeignClient(value = "iot-apicontrol")
public interface ApiCache {

    @PostMapping("/api/list/simple")
    Mono<R> findAllApi2Dto();

    @PostMapping("/api/add")
    Mono<R> addApi(@RequestBody Set dc3ApiControlDto);


    @PostMapping("/delete")
    Mono<R> deleteApi(@RequestParam String id);
}
